
<%@page import="db.NWDB"%>
<%@page import="java.util.Calendar"%>
<%@page import="java.util.GregorianCalendar"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core"%>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>預定日期</title>
        <script src="/Calendar/scripts/jquery-1.11.1.min.js" type="text/javascript"></script>
        <script type="text/javascript">
        </script>
        <style type="text/css"></style>
    </head>
    <body>
        <jsp:include page="../tools/TopBanner.jsp"></jsp:include>
        
        <div align="center">
            <font size="7">${year}年${month}月</font>
        </div>
        
        <div align="right">
            <form action='/JavaCamping/booking/calendar' method="post">
            <input type="hidden" name="year" value="${year}" id="nextYear">
            <input type="hidden" name="month" value="${month-1}" id="nextMonth">
            <input type="submit" value="上個月" id="next">
            </form>
            <form action='/JavaCamping/booking/calendar' method="post">
            <input type="hidden" name="year" value="${year}" id="nextYear">
            <input type="hidden" name="month" value="${month+1}" id="nextMonth">
            <input type="submit" value="下個月" id="next">
            </form>
        </div>
   
        <table border="0" width="1000" height="500"  align="center">
            <div>
                <tr>
                    <td width="25" height="16" align="center"> <font color="red" size="5">日</font> </td>
                    <td width="25" height="16" align="center"> <font size="5">一</td>
                    <td width="25" height="16" align="center"> <font size="5">二</td>
                    <td width="25" height="16" align="center"> <font size="5">三</td>
                    <td width="25" height="16" align="center"> <font size="5">四</td>
                    <td width="25" height="16" align="center"> <font size="5">五</td>
                    <td width="25" height="16" align="center"> <font color="red" size="5">六</font> </td>
                </tr>
                <c:forEach begin="0" end="6" var="i">                  
                    <tr>
                        <c:forEach begin="0" end="6" var="j">                         
                            <td width="15%" height="16" valign="middle" align="center">
                                <font size="4">${days[i][j]}</font>
                            </td>                       
                        </c:forEach>
                    </tr>
                    <tr>
                        <c:forEach begin="0" end="6" var="j">                         
                            <td width="15%" height="16" valign="middle" align="center">
                                ${aa[i][j]}
                            </td>                       
                        </c:forEach>
                    </tr>                       
                    <tr>
                        <c:forEach begin="0" end="6" var="j">                         
                            <td width="15%" height="16" valign="middle" align="center">
                                ${bb[i][j]}
                            </td>                       
                        </c:forEach>
                    </tr> 
                    <tr>
                        <c:forEach begin="0" end="6" var="j">                         
                            <td width="15%" height="16" valign="middle" align="center">
                                ${cc[i][j]}
                            </td>                       
                        </c:forEach>
                    </tr>                                                
                </c:forEach>
            </div>
        </table>  
        <%@include file="../tools/PageFooter.jsp" %>
    </body>
</html>
